
	@include('mobile.title')
	<!--名字信息-->
	<section class="info">
		<div class="photo">
			<img src="@if($info[0] -> photo) {{ $info[0] -> photo}} @else{{URL::asset('mobile/image/photo.png') }} @endif" alt="" />
			<div class="v">
				@if($info[0] -> isanalyst == 1)
					<img src="{{URL::asset('mobile/image/v.png')}}" alt="" />
				@endif
			</div>
		</div>
		<!-- 名字 认证信息 -->
		<div class="nameinfo">
			<div class="name">
				{{ $info[0] -> username}}
			</div>
			<div class="renzheng">
				@if($info[0] -> isanalyst == 1)
				<img src="{{URL::asset('mobile/image/renzheng.png')}}" alt="" />
				@endif
			</div>
		</div>
	</section>
	<!--战绩-->
	<section class="record">
		<div class="xing">
			<div>
				@if($info[0] -> grade == 0)
                <img src="{{ URL::asset('mobile/image/analystcenter/0dengji.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 1)
	                <img src="{{ URL::asset('mobile/image/analystcenter/1dengji.png') }}" alt="">
	            @elseif($info[0] -> grade == 2)
	                <img src="{{ URL::asset('mobile/image/analystcenter/2dengji.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 3)
	                <img src="{{ URL::asset('mobile/image/analystcenter/3dengji.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 4)
	                <img src="{{ URL::asset('mobile/image/analystcenter/4dengji.png') }}" alt=""> 
	            @endif
			</div>
			<div>
				@if($info[0] -> star == 1)
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xh.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xh.png') }}" alt=""> </div>
	            @elseif($info[0] -> star == 2)
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xh.png') }}" alt=""> </div>
	            @elseif($info[0] -> star == 3)
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('mobile/image/analystcenter/xl.png') }}" alt=""></div> 
	            @endif
			</div>
		</div>
		<div class="lian">
			<div class="kui">
				<p><span>{{$info[0] -> lianbai}}/</span>3</p>
				<p>连亏</p>
			</div>
			<div class="sheng">
				<p><span>{{$info[0] -> liansheng}}/</span>5</p>
				<p>连胜</p>
			</div>
		</div>
		<div class="deng">
			<p><span>等级:&nbsp;</span>
				@if($info[0] -> grade == '4') V
                @elseif($info[0] -> grade == '3') IV
                @elseif($info[0] -> grade == '2') III
                @elseif($info[0] -> grade == '1') II
                @else I                                 
                @endif
			</p>
			<p><span>职称:&nbsp;</span>
				@if($info[0] -> grade == '4') 金融宗师
                @elseif($info[0] -> grade == '3') 操盘大师
                @elseif($info[0] -> grade == '2') 分析专家
                @elseif($info[0] -> grade == '1') 交易高手
                @else 交易能手                                  
                @endif
			</p>
		</div>
	</section>
		<!-- 胜率图表 -->
	<section class="winrate">
			<div class="wingauge">
				<div id="gauge" class="gauge" style="width:6.25rem; height: 4.25rem"></div>
			</div>
      <div class="winnum">
      	@if($memorderinfo)
		@foreach($memorderinfo as $key => $val)
	      	 <p class="points">胜率<span>{{ round($val -> winrate,2) }}</span>%</p>
	    @endforeach
		@endif
	         <p class="msgImg">
	            <img src="{{ URL::asset('mobile/image/analystcenter/zhutu.png') }}" alt="">
	         </p>
	    </div>
	</section>
	<!--分析师策略-->
	<section class="handantitle">
		分析师策略
	</section>
	@if($memorderinfo)
		@foreach($memorderinfo as $key => $val)
	<section class="hd">
		<div class="total">
			<p>
				<span>总盈利数</span>
				<span>{{ $val -> wincounts}}笔</span>
			</p>
			<p>
				<span>总盈利点</span>
				<span>{{ round($val -> final_point,2)}}点</span>
			</p>
		</div>
		<div class="total">
			<p>
				<span>做多盈利</span>
				<span>{{ round($val -> buy_point,2)}}点</span>
			</p>
			<p>
				<span>总亏损</span>
				<span>{{ $val -> losscounts}}笔</span>
			</p>
		</div>
		<div class="total">
			<p>
				<span>最大盈利</span>
				<span>{{ round($val -> max_final_point,2)}}点</span>
			</p>
			<p>
				<span>做空盈利</span>
				<span>{{ round($val -> sell_point,2)}}点</span>
			</p>
		</div>
		<div class="total">
			<p>
				<span>单均盈利</span>
				<span>{{ round($val -> single_final_point,2)}}点</span>
			</p>
			<p>
				<span>最大亏损</span>
				<span>{{ round($val -> min_final_point,2)}}点</span>
			</p>
		</div>
	</section>
		@endforeach
	@endif
	<!--交易品种  饼形图-->
	<section class="jiaoyitype">
		<div class="pz">交易品种 </div>
		<div class="jiaoyipinzhong">
			<div id="m_typechart" class="m_typechart" style="height: 8.25rem;"></div>
		</div>
	</section>
	<!--擅长品种-->
	<div class="goodat">
		擅长品种
	</div>
	<section class="goodattype"> 
		@if($memadepttype)
			@foreach($memadepttype as $v) 
			<div>
				<p>{{$v -> chinaname}}</p>
				<p>{{$v -> typename}}</p>
				<p><span>{{$v -> ordernum}}</span>单</p>
				<p><span>{{round($v -> point,2)}}</span>点</p>
			</div>
			@endforeach
		@endif
	</section>
	<!--交易报表  曲线图-->
	<section class="jiaoyireport">
		<div class="bb">交易报表</div>
		<div class="jiaoyichart">
				<div class="m_jiaoyichart" id="m_jiaoyichart" style="height: 8.25rem;"></div>
		</div>
	</section>
<!-- js引入 -->
<script src="{{URL::asset('public_js/jquery-3.2.1.min.js')}}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts.js') }}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-3d.js')}}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-zh_CN.js')}}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/modules/exporting.js') }}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-more.js') }}"></script>
<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/modules/solid-gauge.js') }}"></script>
<script src="{{ URL::asset('public_js/src/echarts.js') }}"></script>
<script src="{{URL::asset('mobile/js/public.js') }}"></script>

<script>
	$(document).ready(function(){
		// 胜率环形图
		var left_blue = [Number(parseFloat('{{$memorderinfo[0]->winrate}}').toFixed(2))]; //胜率占比
		var datas = left_blue;
    drawChartS(gauge,datas);
		
		//交易品种
		var usertel = '{{ $info[0] -> tel }}';
	   	//交易品种饼图数据
	   	var dataP ="[{{$typenamestr}}]";
	   	dataP = dataP.replace(/&#039;/g,'"').replace(/&quot;/g,'"');
        dataP = $.parseJSON(dataP);
	   	drawChartB("m_typechart",dataP);
	   	//总交易报表
		var xmydata11 = [];
	    var xmypoint='{{ $pointDayJiaoyi }}';
	    var xmytime='{{ $timeDayJiaoyi }}';
	    xmytime = xmytime.split(',');
	    xmypoint = xmypoint.split(',');
	    xmypoint.forEach(function(data,index,arr){
	        xmydata11.push(+data);
	    });
	    jiaoyiChart(m_jiaoyichart,[xmytime,xmydata11]);
	})
</script>
<script src="{{URL::asset('mobile/js/mastercenter.js') }}"></script>
</body>
</html>
    	
